package com.eva.core.annotation.excel.converter;

import com.eva.core.annotation.excel.ExcelDataConverterAdapter;

/**
 * 整数转字符串
 * @author Caesar Liu
 * @date 2022-04-12 11:14
 */
public class IntegerToStringConverter implements ExcelDataConverterAdapter {

    @Override
    public Object convert(Object... args) {
        Object value = args[0];
        if (value == null) {
            return null;
        }
        return "" + ((Double)value).longValue();
    }
}
